<h1>Students List</h1>

<table>
    <thead>
        <tr>
            <th>Id</th>
            <th>User</th>
            <th>Name</th>
            <th>Birthday</th>
            <th>Curriculum</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($students as $student): ?>
            <tr>
                <td><a href="<?php echo url_for('student/show?id=' . $student->getId()) ?>"><?php echo $student->getId() ?></a></td>
                <td><?php echo $student->getUserId() ?></td>
                <td><?php echo $student->getUser()->getFirstName() . ' ' . $student->getUser()->getLastName() ?></td>
                <td><?php echo $student->getBirthday() ?></td>
                <td><?php echo $student->getCurriculumId() ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>

<a href="<?php echo url_for('student/new') ?>">New</a>
